import { UserLayout } from '@/layouts'
/**
 * 基础路由
 * @type {*[]}
 */
export const constantRouterMap = [
  {
    path: '/user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [
      {
        path: 'login',
        name: 'login',
        component: () =>
          import(/* webpackChunkName: "user" */ '@/views/user/Login'),
      },
      {
        path: 'register',
        name: 'register',
        component: () =>
          import(/* webpackChunkName: "user" */ '@/views/user/Register'),
      },
      {
        path: 'register-result',
        name: 'registerResult',
        component: () =>
          import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult'),
      },
    ],
  },
  {
    path: '/404',
    component: () =>
      import(/* webpackChunkName: "fail" */ '@/views/exception/404'),
  },
  {
    path: '/404',
    component: () =>
        import ( /* webpackChunkName: "fail" */ '@/views/exception/404')
  },
  {
    path: '/500',
    component: () =>
        import ( /* webpackChunkName: "fail" */ '@/views/exception/500')
  }
]
